﻿<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title>产品分利</title>
    <link href="/style/rightdirectory.css" rel="stylesheet" />
    <script src="/script/config.js"></script>
</head>
<style>
    th {
        text-align: center;
    }
    td {
        text-align: center;
    }
    .detail {
        color: darkcyan;
    }
</style>
<body>
    <div class="view-page">
        <h5>购买产品分利</h5>
        <div class="view-data">
            <table id="table" class="table table-bordered table-hover" data-post="">
                <thead>
                    <tr>
                        <th class="checkboxs">
                            <label class="checkbox-reset">
                                <input type="checkbox" data-checked-table="all" />
                            </label>
                        </th>
                        <th>微信APPId</th>
                        <th>微信AppSecret</th>
                        <th>创建时间</th>
                    </tr>
                </thead>
                <tbody></tbody>
            </table>
        </div>
    </div>
</body>

</html>
<script type="text/html" id="tp-table">
    {{set  d=list}}
    <tr data-eidt="{{d.Id}}">
        <td class="checkboxs">
            <label class="checkbox-reset">
                <input type="checkbox" value="{{d.Id}}"  onclick="openDetail({{d.Id}})" />
            </label>
        </td>
        <td>{{d.AppId}}</td>
        <td>{{d.AppSecret}}</td>
        <td>{{d.CreateDate|to_date}}</td>
    </tr>
   
</script>
<link href="/script/valid/css/tr.css" rel="stylesheet" /><!--判断如：PlatformName格式-->
<script src="/script/valid/form-valid.js?v=2018"></script>
<script type="text/javascript">
    $(function () {
        function _LoadData() {
            $.http.json("wechatconfig/find", {id:1} ,
                {
                    pass: function (d) {
                       
                        $("#table>tbody").append(template("tp-table", {
                            list: d
                        }));
                    }
                })
        }
        _LoadData();//初启化
    })

    function openDetail(d) {  //弹出会员分利
        window.location.href = "/views/system/wechatconfig/form.html?v=" + d;
        return 
    }
</script>